* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(200deg, #72afd3, #96fbc4);
}

/* 上方欢迎语 */
.welcome-text {
    color: black;
    display: flex;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    align-items: center;
    justify-content: center;
}

.welcome-text img {
    margin-right: 12px !important;
}

/* 提示文字 */
.text-placeholder {
    display: flex;
    font-size: 80%;
    color: #909399;
    justify-content: center;
}

/* 下方背景颜色 */
.bottom-container {
    width: 100%;
    height: 50vh;
    bottom: -15vh;
    position: absolute;
    transform: skew(0, 3deg);
    background: rgb(23, 43, 77);
}

/* 表单卡片样式 */
.form-container {
    width: 100vw;
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

/* 表单样式 */
.form-signin {
    z-index: 20;
    width: 25vw;
    display: flex;
    border-radius: 3%;
    padding: 35px 50px;
    flex-direction: column;
    background: rgb(247, 250, 252);
}

/* 按钮样式 */
.btn-primary {
    height: 40px;
    color: white;
    cursor: pointer;
    border-radius: 0.25rem;
    background: #5e72e4;
    border: 1px #5e72e4 solid;
    transition: all 0.15s ease;
    /* -webkit-box-shadow: 0 4px 6px rgb(50 50 93 / 11%), 0 1px 3px rgb(0 0 0 / 8%);
    box-shadow: 0 4px 6px rgb(50 50 93 / 11%), 0 1px 3px rgb(0 0 0 / 8%); */
}

.btn-primary:hover {
    transform: translateY(-3%);
    -webkit-box-shadow: 0 4px 6px rgb(50 50 93 / 11%), 0 1px 3px rgb(0 0 0 / 8%);
    box-shadow: 0 4px 6px rgb(50 50 93 / 11%), 0 1px 3px rgb(0 0 0 / 8%);
}

/* 表单间距 */
.form-signin div, button {
    margin-bottom: 25px;
}

/* 表单输入框 */
.form-signin input {
    width: 100%;
    height: 40px;
    outline: none;
    text-indent: 15px;
    border-radius: 3px;
    border: 1px #e4e7ed solid;
}

/* 表单验证码容器 */
.code-container {
    display: flex;
    justify-content: space-between;
}

/* 表单验证码容器 */
.code-container input {
    margin-right: 10px;
}

#code-image {
    width: 150px;
    height: 40px;
}

.code-btn {
    width: 150px;
    height: 40px;
}

/* 表单超链接 */
.btn-light {
    height: 40px;
    display: flex;
    color: #5e72e4;
    border-radius: 3px;
    align-items: center;
    justify-content: center;
    border: 1px #5e72e4 solid;
}

.form-signin img {
    margin: 0;
}

.form-signin a {
    text-decoration: none;
}

.btn-light:hover {
    transform: translateY(-3%);
    -webkit-box-shadow: 0 4px 6px rgb(50 50 93 / 11%), 0 1px 3px rgb(0 0 0 / 8%);
    box-shadow: 0 4px 6px rgb(50 50 93 / 11%), 0 1px 3px rgb(0 0 0 / 8%);
}

.form-signin input:focus {
    border: 1px solid rgb(41, 50, 225);
}

.alert {
    top: 20px;
    width: 100%;
    z-index: 50;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
}

/* 弹框样式 */
#error_box {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    padding: 15px;
    display: none;
    z-index: 500;
    animation: shake 0.2s;
}

/* 切换登录方式按钮 */
.change-login-type {
    display: flex;
    font-size: 15px;
    justify-content: space-between;
    margin-top: -10px !important;
    margin-bottom: 10px !important;
}

.getCaptcha {
    width: 150px;
    background-color: white;
}

#error_message {
    padding-left: 10px;
}

/* 三方登录图标 */
.third-box {
    text-align: center;
    margin-bottom: 0 !important;
}
.third-box img {
    position: relative;
    top: 3px;
}

@keyframes shake {
    0% {
        transform: translate(-50%, -50%);
    }

    25% {
        transform: translate(-45%, -50%);
    }

    50% {
        transform: translate(-50%, -50%);
    }

    75% {
        transform: translate(-45%, -50%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

/*修改提示信息的文本颜色*/
input::-webkit-input-placeholder {
    /* WebKit browsers */
    color: #8898aa;
}

input::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #8898aa;
}

input:-ms-input-placeholder {
    /* Internet Explorer 10+ */
    color: #8898aa;
}

/* 移动端css */
@media screen and (orientation: portrait) {
    .form-signin {
        width: 100%;
    }

    .form-container {
        width: auto;
        height: 90vh;
        padding: 20px;
    }

    .welcome-text {
        top: 9vh;
        flex-direction: column;
    }
}

/* 宽度 */
/* 屏幕 > 666px && < 800px */
@media (min-width: 667px) and (max-width: 800px) {
    .form-signin {
        width: 50vw;
    }

    .welcome-text {
        top: 18vh;
    }
}

/* 屏幕 > 800px */
@media (min-width: 800px) and (max-width: 1000px) {
    .form-signin {
        width: 500px;
    }
}

/* 高度 */
@media (min-height: 600px) and (max-height: 600px) {
    .welcome-text {
        top: 6%;
    }
}

@media (min-height: 800px) and (max-height: 1000px) {
    .welcome-text {
        top: 12%;
    }
}
